
#打印菱形
for i in range(1,11,2):
    print(("*" * i).center(11))
for i in range(7,0,-2):
    print(("*" * i).center(11))

"""
#打印水仙花数
for i in range(100,1000):
    a=i//100
    b=i//10%10
    c=i%10
    if a**3+b**3+c**3==i:
        print(i)

# 打印九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print("%d*%d=%d"%(i,j,j*i),end=" ")
    print()

for i in range(1,10):
    for j in range(1,i+1):
        print("%d*%d=%d"%(i,j,i*j),end=" ")
    print()
# 打印完数
for i in range(1,100):
    sum=0
    for j in range(1,i):
        if i%j==0:
            sum+=ja
    if sum==i:
        print(i)

# 打印质数
for i in range(1,100):
    for j in range(2,i):
        if i%j==0:
            break
    else:
        print(i)

# 打印斐波那契数列
a,b=0,1
while True:
    print(a,end=" ")
    a,b=b,a+b
    if a>100:
        break

for i in range(100,1000):
    a=i//100
    b=i//10%10
    c=i%10
    if a**3+b**3+c**3==i:
        print(i)

for i in range(1,100):
    sum=0
    for j in range(1,i):
        if i%j==0:
            sum+=j
    if sum==i:
        print(i)
for i in range(1,100):
    for j in range(1,i):
        if i%j==0:
            break
        else:
            print(i)
# 打印斐波那契数列
a,b=0,1
while True:
    print(a)
    a,b=b,a+b
    if a>39:
        break

def fbnq(n):
    a, b = 0, 1
    for _ in range(n):
        print(a, end=' ')
        a, b = b, a + b

fbnq(39)
"""